home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSUtils.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  1.7 KB  |  75 lines  |  [TEXT/CWIE]

  1. // MSUtils.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #ifndef __MSUTILS__
  8. #define __MSUTILS__
  9.  
  10. #include <Types.h>
  11. #include <Quickdraw.h>
  12. #include <Packages.h>
  13. #include <GestaltEqu.h>
  14. #include <Editions.h>
  15. #include <Printing.h>
  16.  
  17. #ifndef __MSGLOBALS__
  18. #include "MSGlobals.h"
  19. #endif
  20.  
  21. Boolean        GestaltAvailable( void );
  22.  
  23. Boolean        CheckEnvironment( void );
  24.  
  25. void        ShowError( Str255 theError, long theErrorCode );
  26.  
  27. Boolean        FeatureIsImplemented( OSType theFeature, short theTestBit );
  28.  
  29. void        GetTempFileName( DPtr aDoc, Str255 newString );
  30.  
  31. Boolean        Ours( WindowPtr aWindow );
  32.  
  33. void        SetShortMenus( void );
  34. void        SetLongMenus( void );
  35.  
  36. void        SetStyleMenu( DPtr theDoc );
  37.  
  38. void        SetFontMenu( DPtr theDoc );
  39.  
  40. void        AdornDefaultButton(DialogPtr theDialog, short theItem);
  41.  
  42. pascal void    DrawDefaultOutline( DialogPtr theDialog, short theItem );
  43.  
  44. void        RetrieveText( DialogPtr aDialog, short anItem, Str255 aString );
  45.  
  46. void        SetText( DialogPtr aDialog, short itemNo, Str255 theString );
  47.  
  48. void        GetRectOfDialogItem( DialogPtr theDialog, short theItem, Rect *theRect );
  49.  
  50.     // Changed for 7.0 and Outline Fonts
  51. void        SetSizeMenu( DPtr theDoc );
  52.  
  53. long        LesserOf( long A, long B );
  54.  
  55. long        GreaterOf( long A, long B );
  56.         
  57. Boolean        DoPageSetup(DPtr theDoc);
  58.  
  59. Boolean     CtrlKeyPressed( const EventRecord *theEvent );
  60.  
  61. Boolean     OptionKeyPressed( const EventRecord *theEvent );
  62.  
  63. short        NumToolboxTraps(void);
  64. TrapType    GetTrapType(short theTrap);
  65. Boolean        TrapAvailable(short theTrap);
  66.  
  67.  
  68. #define     kMenuTitle 0
  69.  
  70. Boolean     SetMenuItemState (  Boolean    theState,
  71.                                 MenuHandle theMenu,
  72.                                 short      item );
  73.  
  74. #endif
  75.